#include <iostream>
#include <pthread.h>
#include <time.h>
#include <unistd.h>

void* route(void* args)
{
    int cnt = 5;
    sleep(1);
    return (void*) 10;
}

int main()
{
    pthread_t tid;
    pthread_create(&tid,nullptr,route,(void*)"thread-1");
    sleep(1);

    void* ret;
    pthread_join(tid,&ret);

    std::cout << (long long)ret << std::endl;
    return 0;
}